package com.bw.hongye.other.service.impl;

import com.aliyun.common.utils.PageUtils;
import com.aliyun.common.utils.Query;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.hongye.other.dao.AssortDao;
import com.bw.hongye.other.entity.AssortEntity;
import com.bw.hongye.other.service.AssortService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("assortService")
public class AssortServiceImpl extends ServiceImpl<AssortDao, AssortEntity> implements AssortService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AssortEntity> page = this.page(
                new Query<AssortEntity>().getPage(params),
                new QueryWrapper<AssortEntity>()
        );

        return new PageUtils(page);
    }

}